<?php
include "../librari/koneksi.php";
//$id=$_POST['idPelamar'];
$id=$_POST['id'];
$nama=$_POST['nama'];
$log=$_POST['logika'];
$kec=$_POST['kecermatan'];
$kep=$_POST['kepribadian'];
$kar=$_POST['karakter'];
//update data
$sql = " UPDATE pelamar SET nama='".$nama."', nilai_logika=".$log.", nilai_kecermatan=".$kec.", nilai_kepribadian='".$kep."', nilai_karakter='".$kar."' WHERE idPelamar=".$id."";
echo $sql." <br/>";
mysql_query($sql) or die("error nich : ".mysql_error());

echo "<script language='JavaScript'>document.location='list_nilai_pelamar.php?id=$id';
alert('Sukses. Klik OK!');
 </script>";
	
?>


